#ifndef __WINUPDATE_H__
#define __WINUPDATE_H__

#include "./winhdr.h"

namespace MiniUI
{

class UpdateWindow
{
public:
    UpdateWindow();
    ~UpdateWindow();

    BOOL Update(HWND hWnd, HDC hdcDst, HDC hdcSrc, LPRECT lpRcDirty, BYTE Alpha);

protected:
    typedef BOOL (WINAPI *PF_UpdateLayeredWindowIndirect)(HWND hWnd, UPDATELAYEREDWINDOWINFO CONST *pULWInfo);
    PF_UpdateLayeredWindowIndirect m_pfnUpdateLayered;
    HMODULE m_hUser32;
};

}

#endif